#ifndef SHADOWFANMASK_H
#define SHADOWFANMASK_H

#include <QWidget>
#include <QPainter>
#include <QStyleOptionGraphicsItem>
#include<QGraphicsItem>

class ShadowFanMask : public QObject,public QGraphicsItem
{
    Q_OBJECT
public:
    ShadowFanMask(qreal x, qreal y, qreal width, qreal height, qreal startAngle, qreal spanAngle, QGraphicsItem *parent = nullptr);
    void setAngle(qreal startAngle,qreal spanAngele);
protected:

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
    QRectF boundingRect() const override;
private:
    qreal x;
    qreal y;
    qreal width;
    qreal height;
    qreal startAngle;
    qreal spanAngle;
signals:

};

#endif // SHADOWFANMASK_H
